﻿using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.Unit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EkStudio.com.bean.xml.RootInterface.Field
{
    public class BillUiFieldsViewBorderProperty:BillObjectInterface
    {
        private string alignment = "StLeft";

        private int fnWidth = BeanUtil.FIELD_WIDTH_DEFAULT;

        private bool shInGrid = true;

        private bool shSearch = false;

        private string summary = "StNone";

        private bool fixedColumn = false;

        private string searchType = "StNone";

        private string defaultData = "";

        private string subject = "";

        private bool dicMenu = false;

        private bool showMail = true;

        private BillUiFieldsViewBorderLinker linker = null;


        [Xml("alignment")]
        public string Alignment
        {
            get
            {
                return alignment;
            }

            set
            {
                alignment = value;
            }
        }
        [Xml("fnWidth")]
        public int FnWidth
        {
            get
            {
                return fnWidth;
            }

            set
            {
                fnWidth = value;
            }
        }
        [Xml("shInGrid")]
        public bool ShInGrid
        {
            get
            {
                return shInGrid;
            }

            set
            {
                shInGrid = value;
            }
        }
        [Xml("shSearch")]
        public bool ShSearch
        {
            get
            {
                return shSearch;
            }

            set
            {
                shSearch = value;
            }
        }
        [Xml("searchType")]
        public string SearchType
        {
            get
            {
                return searchType;
            }

            set
            {
                searchType = value;
            }
        }
        [Xml("summary")]
        public string Summary
        {
            get
            {
                return summary;
            }

            set
            {
                summary = value;
            }
        }
        [Xml]
        public bool FixedColumn
        {
            get { return fixedColumn; }
            set { fixedColumn = value; }
        }

        [Xml("defaultData")]
        public string DefaultData
        {
            get
            {
                return defaultData;
            }

            set
            {
                defaultData = value;
            }
        }
        [Xml("subject")]
        public string Subject
        {
            get
            {
                return subject;
            }

            set
            {
                subject = value;
            }
        }
        [Xml("dicMenu")]
        public bool DicMenu
        {
            get
            {
                return dicMenu;
            }

            set
            {
                dicMenu = value;
            }
        }
        [Xml("showMail")]
        public bool ShowMail
        {
            get
            {
                return showMail;
            }

            set
            {
                showMail = value;
            }
        }
        [XmlElement("linker")]
        public BillUiFieldsViewBorderLinker Linker
        {
            get
            {
                return linker;
            }

            set
            {
                linker = value;
            }
        }
        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
                
            }
        }

        public object Clone()
        {
            BillUiFieldsViewBorderProperty clone = new BillUiFieldsViewBorderProperty();
            clone.Alignment = alignment;
            clone.DefaultData = defaultData;
            clone.DicMenu = dicMenu;
            clone.FnWidth = fnWidth;
            clone.SearchType = searchType;
            clone.ShInGrid = shInGrid;
            clone.ShSearch = shSearch;
            clone.Subject = subject;
            clone.Summary = summary;

            return clone;
        }
    }
}
